package com.hycreate.platform.modules.crm.mission;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.service.CrudService;



@Service
@Transactional(readOnly = true)
public class WorkLoadService extends CrudService<WorkLoadDao,WorkLoad> {

	public WorkLoad get(String id){
		
		return	super.get(id);
	}
	
	@Transactional(readOnly = false)
	public void save(WorkLoad wl){
		 super.save(wl);
	} 
	
	@Transactional(readOnly = false)
	public void delete(WorkLoad wl){
		super.delete(wl);
	}
	
	@Transactional(readOnly = false)
	public List<WorkLoad>  findworkLoadList(String userId){
		return dao.findworkLoadList(userId);
	}
	
	@Transactional(readOnly = false)
	public List<Staff>  findstaff(String userId){
		
		return dao.findstaff(userId);
	}
	
	
	@Transactional(readOnly = false)
	public WorkLoad getWorkLoad(String userId){
		return dao.getWorkLoad(userId);
	}
	
	@Transactional(readOnly = false)
	public List<WorkLoad> pastList (String dividerId){
		return dao.pastList(dividerId);
	}
}
